//
//  WDUserInfoUpdateRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2024/8/22.
//

#import "WDUserInfoUpdateRequest.h"

@interface WDUserInfoUpdateRequest ()
@property (nonatomic, strong) WDUserInfoUpdateReqModel *reqModel;
@end

@implementation WDUserInfoUpdateRequest

- (instancetype)initWithModel:(WDUserInfoUpdateReqModel *)model {
    if (self = [super init]) {
        self.reqModel = model;
    }
    return self;
}

- (NSString *)requestUrl {
    return kAPP_USER_INFO_UPDATE;
}

- (TYZRequestSerializerType)requestSerializerType {
    return TYZRequestSerializerTypeJSON;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodPOST;
}

- (id)requestArgument {
    NSDictionary *params = [self.reqModel yy_modelToJSONObject];
    return params;
}

- (Class)rspClass {
    return [ZHCustomUserInfoModel class];
}

@end
